package cn.bgs.pojo;


import java.util.List;

public class Teacher {

  private Integer tid;
  private String tname;

  //表示关系
  //一个老师了很多学生
  private List<Student> stus;

  @Override
  public String toString() {
    return "Teacher{" +
            "tid=" + tid +
            ", tname='" + tname + '\'' +
            ", stus=" + stus +
            '}';
  }

  public Integer getTid() {
    return tid;
  }

  public void setTid(Integer tid) {
    this.tid = tid;
  }

  public String getTname() {
    return tname;
  }

  public void setTname(String tname) {
    this.tname = tname;
  }

  public List<Student> getStus() {
    return stus;
  }

  public void setStus(List<Student> stus) {
    this.stus = stus;
  }
}